<?php 
	if($this->messages)
	{
		echo '<ul>';
		foreach($this->messages as $message)
		{
			echo '<li>'.$message .'</li>';
		}
		echo '</ul>';
	}

	$uploadform = $this->uploadform;
	
	$uploadform->setAttribute('action', $this->url('module/process', array('controller'=>'upload', 'action'=>'index')));
	
	$uploadform->prepare();
	
	echo $this->form()->openTag($uploadform);
	
	echo $this->formRow($uploadform->get('fileupload'));
	
	echo $this->formRow($uploadform->get('submit'));
	
	echo $this->form()->closeTag();
?>